package com.vondear.rxui.view.dialog;

import android.content.Context;
import android.media.Image;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.vondear.rxui.R;

/**
 * 描述：添加类的描述
 *
 * @author
 * @time 2020/4/30
 */
public class NoticeDialogRedSure extends RxDialog {

    private TextView textContent;
    private ImageView closeBtn;
    public NoticeDialogRedSure(Context context, int themeResId) {
        super(context, themeResId);
        initView();
    }

    public NoticeDialogRedSure(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
        initView();
    }

    public NoticeDialogRedSure(Context context) {
        super(context);
        initView();
    }

    public NoticeDialogRedSure(Context context, float alpha, int gravity) {
        super(context, alpha, gravity);
        initView();
    }


    public TextView getTextContent() {
        return textContent;
    }

    public ImageView getCloseBtn() {
        return closeBtn;
    }

    private void initView() {
        View dialogView = LayoutInflater.from(getContext()).inflate(R.layout.dialog_tishi_notice, null);
        textContent = dialogView.findViewById(R.id.textContent);
        closeBtn = dialogView.findViewById(R.id.closeBtn);
        setContentView(dialogView);
    }

}
